package com.qcby.Service.ServiceImpl;

import com.qcby.Entity.TrainOrder;
import com.qcby.Mapper.TrainOrderMapper;
import com.qcby.Service.TrainNumService;
import com.qcby.Service.TrainOrderService;
import com.qcby.query.TrainOrderQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrainOrderServiceImpl implements TrainOrderService {

    @Autowired
    private TrainOrderMapper trainOrderMapper;

    public List<TrainOrder> getTrainOrderByTrainIdAndCarriageNum(int id,int carriageNum){
        return trainOrderMapper.getTrainOrderByTrainIdAndCarriageNum(carriageNum,id);
    }
}
